Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: use PrintCaughtException in the snapshot builder #38745

Closed
wants to merge 3 commits into from

Conversation

joyeecheung
Copy link
Member

This prints not only the error message but also the error
source line and the stack trace wherever possible.

This prints not only the error message but also the error
source line and the stack trace wherever possible.
@github-actions github-actions bot added the needs-ci PRs that need a full CI run. label May 20, 2021
@nodejs-github-bot
Copy link
Collaborator

TryCatch bootstrapCatch(isolate);
v8::MaybeLocal<Value> result = env->RunBootstrapping();
if (bootstrapCatch.HasCaught()) {
PrintCaughtException(isolate, context, bootstrapCatch);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PrintCaughtException(isolate, context, bootstrapCatch);
PrintCaughtException(isolate, context, bootstrapCatch);
abort();

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a result.ToLocalChecked(); below which should abort the process if there's an exception

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@joyeecheung
Copy link
Member Author

Landed in 308ab8a

joyeecheung added a commit that referenced this pull request May 26, 2021
This prints not only the error message but also the error
source line and the stack trace wherever possible.

PR-URL: #38745
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
danielleadams pushed a commit that referenced this pull request May 31, 2021
This prints not only the error message but also the error
source line and the stack trace wherever possible.

PR-URL: #38745
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
@danielleadams danielleadams mentioned this pull request May 31, 2021
@richardlau
Copy link
Member

Doesn't land cleanly on v14.x-staging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants